<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>单词查询</title>
</head>
<body>
<script>
    var name = prompt("请输入您要查询的单词(math,English,Chinese)：");

    if(name=="math"){
        document.write("数学");
    }else if(name=="English"){
        document.write("英语");
    }else if(name=="Chinese"){
        document.write("语文")
    }else{
        document.write("暂无该单词");
    }
</script>
</body>
</html>